home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / cc / dist / make-cccp.com < prev    next >
Encoding:
Text File  |  1989-07-11  |  742 b   |  43 lines

  1. $!
  2. $!    Build the GNU "C" pre-processor on VMS
  3. $!
  4. $
  5. $!
  6. $!    C compiler
  7. $!
  8. $ CC    :=    gcc
  9. $!
  10. $!    Compiler options
  11. $!
  12. $ CFLAGS =    "/debug/inc=([],[.config])"
  13. $!
  14. $!    Link options
  15. $!
  16. $ LDFLAGS :=    /nomap
  17. $!
  18. $!    Link libraries
  19. $!
  20. $ LIBS :=    gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr
  21. $ if "''p1'" .eqs. "LINK" then goto Link
  22. $ 'CC 'CFLAGS cccp.c
  23. $ t1:='f$search("CEXP.C")'
  24. $ if "''t1'" .eqs. "" then goto 10$
  25. $ t1:='f$file_attributes("CEXP.Y","RDT")'
  26. $ t1:='f$cvtime(t1)'
  27. $ t2:='f$file_attributes("CEXP.C","RDT")'
  28. $ t2:='f$cvtime(t2)'
  29. $ if t1 .les. t2 then goto 20$
  30. $ 10$:
  31. $ bison cexp.y
  32. $ rename cexp_tab.c cexp.c
  33. $ 20$:
  34. $!
  35. $ 'CC 'CFLAGS cexp.c
  36. $ 'CC 'CFLAGS version.c
  37. $ Link:
  38. $ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,'LIBS'
  39. $!
  40. $!    Done
  41. $!
  42. $ exit
  43.